<template>
  <div class="upload">
    <person-item :reset-value="status" @givePersonData="givePersonData" />
    <all-item :person-files="personFiles" @resetValue="resetValue" />
  </div>
</template>

<script>
import PersonItem from "./person";
import AllItem from "./all";
export default {
  components: {
    PersonItem,
    AllItem,
  },
  data() {
    return {
      personFiles: [],
      status: false
    };
  },
  methods: {
    givePersonData(files) {
      this.personFiles = files;
    },
    resetValue() {
      this.status = true;
    }
  },
};
</script>

<style>
</style>